<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <link rel="stylesheet" href="/css/base.css">
</head>
<body>
    <p>include()导入html文件， '-'  并解析</p>
    <%- include('public/header.html') %>
    <h1>模板引擎 --- html </h1>
    <h2><%=title%></h2>
    <ul>
        <%for(var i = 0; i < list.length; i++) {%>
            <li><%=list[i]%></li>
        <%}%>
    </ul>
    <p>公共数据 --- <%= userInfo %></p>
    <img src="/images/timg.jpg" alt="">
</body>
</html>